home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / August 96 / Japanese Font Menu < prev    next >
Encoding:
Internet Message Format  |  1996-08-19  |  1.3 KB  |  [TEXT/ttxt]

  1. Subject:     Japanese Font Menu
  2. Sent:        8/18/96 11:44 PM
  3. Received:    8/19/96 9:01 AM
  4. From:        Shinji Shimizu, shimizu@kyoto.screen.co.jp
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Hi ODF Team,
  9.  
  10.  
  11. I tried to make 'Font'('Typeface') menu.
  12. Below is a way that you taught me.
  13.  
  14. But when fontname is Japanese, it does not work well.
  15. Displaied menu chars are changed to English Script.
  16.  
  17. Tell me how to make Japanese 'Font' menu.
  18.  
  19.  
  20. Best Regards.
  21.  
  22. void AddFontsToMenu(Environment* ev, FW_CPullDownMenu* menu)
  23. {
  24.         short count = 0;
  25.         FW_CFontIterator fontIter;
  26.         FW_CString fontName;
  27.         ODCommandID commandID = cFirstFontCommand;
  28.         for (fontName = fontIter.First(); fontIter.IsNotComplete();
  29. fontName = fontIter.Next())
  30.         {
  31.                 menu->AppendTextItem(ev, fontName, commandID+count);
  32.                 count++;
  33.         }
  34.         gFontCount = count;
  35. }
  36. =====================================
  37.                    Shinji Shimizu 
  38.        DAINIPPON SCREEN MFG. CO, LTD.                       
  39. Research and Development Department
  40.          Imageing Products Division           
  41.        E-mail:$B!!(Bshimizu@screen.co.jp                      
  42. =====================================
  43.  
  44.